package com.assessment.service.impl;

import com.assessment.entity.Asetting;
import com.assessment.entity.Column;
import com.assessment.mapper.AsettingMapper;
import com.assessment.service.AsettingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 鑫十一
 * @since 2021-12-15
 */
@Service
@Transactional
public class AsettingServiceImpl extends ServiceImpl<AsettingMapper, Asetting> implements AsettingService {
    @Override
    public List<Column> getColumns() {
        List<Column> columns = new ArrayList<>();
        columns.add(new Column().setLabel("考核名称").setProp("name"));
        columns.add(new Column().setLabel("开始时间").setProp("stime"));
        columns.add(new Column().setLabel("结束时间").setProp("etime"));
        return columns;
    }
}
